package com.wz.dhs.vo.login;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@ApiModel("微信小程序登录结果")
@AllArgsConstructor
public class WxLoginResultVO extends Oauth2TokenVO{

    @ApiModelProperty("openid")
    private String openid;


    @ApiModelProperty("用户手机号")
    private String phone;

    @ApiModelProperty("头像")
    private String avatar;

    @ApiModelProperty("是否VIP")
    private Boolean isVip;

    @ApiModelProperty("是否登录成功[true:登录成功，直接获取token信息，false：代表是新用户，需要再调用获取手机号组件]")
    private Boolean result;

    public WxLoginResultVO(String openid,Boolean result){
        this.openid = openid;
        this.result = result;

    }

    public WxLoginResultVO(){
        super();
    }





}
